package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author ajmd
 * @since 2023/5/3 23:11
 */
@TableName("e_message")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MessagePO implements Serializable {
    //唯一标识
    private String id;
    //内容
    private String content;
    //接收人账号
    private String receiver;
    //接受人类型
    private Integer receiverType;
    //发送人账号
    private String sender;
    //发送人类型
    private Integer senderType;
    //消息状态（0未读，1已读）
    private Integer status;
    //消息发送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp sendTime;
}
